<%@ include file="/inc/top.jsp" %> 
<%@ page import="com.novix.utility.web.DominoLookup" %> 
<%@ page import="com.automatedlogic.domino.sso.DominoUserProfile" %> 
<%@ page import="com.novix.portal.framework.util.IConstants" %> 
<%@ page import="lotus.domino.Document" %> 
<%@ page import="org.apache.commons.lang.StringUtils" %> 
<% 
  String sCorbaServerConnection = request.getSession().getServletContext().getInitParameter("DominoDIIOPConnection"); 
  String sCaptiveName           = uc.getCaptiveName(); 
  String sToken                 = uc.getToken(); 
  String sDominoServer          = request.getSession().getServletContext().getInitParameter("DOMINO_SERVER"); 
  String sChangeReqLink         = DominoLookup.getServiceProvidersURL("designElementName", "changerequest", 
          sCorbaServerConnection, sToken, sCaptiveName, sDominoServer, "Members\\MConfig.nsf"); 
  String sFileDownload          = DominoLookup.getServiceProvidersURL("designElementName", "mainframeset", 
          sCorbaServerConnection, sToken, sCaptiveName, sDominoServer, "Members\\MConfig.nsf"); 
  String sSevProLink            = DominoLookup.getServiceProvidersURL("designElementName", "svcpro", sCorbaServerConnection, 
          sToken, sCaptiveName, sDominoServer, "Members\\MConfig.nsf"); 
 pageContext.setAttribute("sCaptiveName",sCaptiveName); 
 DominoUserProfile user = (DominoUserProfile) request.getSession().getAttribute(IConstants.DOMINO_USER_PROFILE); 
 Document doc = user.getDominoDirectoryPersonDocument(); 
 String emailAdd= doc.getItemValueString("InternetAddress"); 
 if(!StringUtils.isEmpty(emailAdd)){ 
         pageContext.setAttribute("email", emailAdd); 
          
 } 
  

%> 
<script type="text/javascript">
function loadIframe(iframeName, url) {
  flipDominoContent();  
  if ( window.frames[iframeName] ) {
    window.frames[iframeName].location = url;   
    return false;
  }
  else return true;
}

function flipDominoContent(){
	document.getElementById('dominocontent').style.display='block';
	document.getElementById('javacontent').style.display='none';
}
</script>
  <html:form action="/welcomeUser"> 
 	 <div id="dominocontent" style="display:none;" >
 		 <iframe name="ifrm" id="ifrm" src="height1.html" width="1100" height="600" scrolling="no" frameborder="0">Sorry, your browser doesn't support iframes.</iframe>
	</div>
    <div align="center" class="pageHeader"  id="javacontent" style="display:block;"> 
      <H2> 
        <%= captiveName %> Member Main Menu 
      </H2>      
	      <div align="center"> 
		      <html:link href="<%= sChangeReqLink %>"> 
		        Request Change to Organization Record 
		      </html:link> 
		      <br> 
		      <html:link action="domino/viewOrganizations?id=A"> 
		        View Organizations 
		      </html:link> 
		      <br> 
		      <html:link action="domino/searchOrgs"> 
		        Search Organizations 
		      </html:link> 
		      <br> 
		      <html:link action="domino/viewContacts?showall=false&compname=A"> 
		        Contact Picture Gallery 
		      </html:link>
				<br>     
		      <a href="<%=sFileDownload%>"  onclick="return loadIframe('ifrm', this.href)">Document Library</a><br>                                                
		<% 
		      String logout = "domino/logout?RedirectTo=" + basePath + "?captive=" + uc.getUser().getCaptive().toLowerCase(); 
		%> 
		      <html:link action="<%= logout %>"> 
		        Log Out 
		      </html:link> 
		    </div> 
	</div>
  </html:form> 
  <%@ include file="/inc/footer.jsp" %> 
